/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

$ouiCardSpacing: map-get($ouiPanelPaddingModifiers, 'paddingMedium');
$ouiCardBottomNodeHeight: $ouiSizeXXL;

$ouiCardSelectButtonBorders: (
  text: $ouiColorSuccess, // Default for selected
  primary: $ouiColorPrimary,
  success: $ouiColorSuccess,
  danger: $ouiColorDanger,
  ghost: $ouiColorDarkShade,
);

$ouiCardSelectButtonBackgrounds: (
  text: $ouiColorLightestShade, // Default for unselected
  primary: tintOrShade($ouiColorPrimary, 90%, 70%),
  success: tintOrShade($ouiColorSuccess, 90%, 70%),
  danger: tintOrShade($ouiColorDanger, 90%, 70%),
  ghost: $ouiColorDarkShade,
);

$ouiCardPaddingModifiers: (
  'paddingNone': 0,
  'paddingSmall': $ouiSizeS,
  'paddingMedium': $ouiSize,
  'paddingLarge': $ouiSizeL
) !default;


/* OUI -> EUI Aliases */
$euiCardSpacing: $ouiCardSpacing;
$euiCardBottomNodeHeight: $ouiCardBottomNodeHeight;
$euiCardSelectButtonBorders: $ouiCardSelectButtonBorders;
$euiCardSelectButtonBackgrounds: $ouiCardSelectButtonBackgrounds;
$euiCardPaddingModifiers: $ouiCardPaddingModifiers;
/* End of Aliases */
